
package com.groovy.learning
total=0
10.times {total=total +it}
println "Le resultat de la somme des 10 premiers entiers est:$total"


total=0
0.step(100, 10) {total=total +it}
println "Le resultat de la somme des 9 premiers dizaines est:$total"

println "".execute().text